import request from '@/utils/request'
// 获取阶段目录
export function getArchStages(data) {
  return request({
    url: "/api/v1/arch/stages",
    method: "POST",
    data
  });
}
//获取阶段下要素分类目录
export function getArchSubsets(data) {
  return request({
    url: "/api/v1/arch/subsets",
    method: "POST",
    data
  });
}
export function getArchElements(data) {
  return request({
    url: "/api/v1/arch/elements",
    method: "POST",
    data
  });
}

//获取当前版本创作要素列表
export function getArchMaster(data) {
  return request({
    url: "/api/v1/arch/master",
    method: "POST",
    data
  });
}



//获取要素版本列表
export function getArchList(data) {
  return request({
    url: "/api/v1/arch/list",
    method: "POST",
    data
  });
}
// 创建创作要素
export function archCreate(data) {
  return request({
    url: "/api/v1/arch/create",
    method: "POST",
    data
  });
}
//删除创作要素
export function archDelete(data) {
  return request({
    url: "/api/v1/arch/delete",
    method: "POST",
    data
  });
}
//编辑创作要素内容
export function archEdit(data) {
  return request({
    url: "/api/v1/arch/edit",
    method: "POST",
    data
  });
}
//设置版本为主版本
export function archSetmaster(data) {
  return request({
    url: "/api/v1/arch/setmaster",
    method: "POST",
    data
  });
}
//设置版本为副版本
export function archSetslave(data) {
  return request({
    url: "/api/v1/arch/setslave",
    method: "POST",
    data
  });
}

